<?php
function encCookie($user_id,$username){
	return md5(C('COO_KEY').$user_id.$username);
}


function acc(){
	if(!cookie('user_id') || !cookie('username')){
		return false;
	}


	$ccode = encCookie(cookie('user_id'),cookie('username'));


	return $ccode === cookie('ccode');
}




?>